import { CHANGETASKSACTIVATE, GETWORKERTASKSSAGA, CHANGEWORKERTASKSAGA, GIVEUPWORKERTASKSAGA } from "../constants";

// 修改前端的猎人用户的任务管理数据
export const ChangeTasksActivate = (obj) => ({
    type: CHANGETASKSACTIVATE,
    data: obj
})

// 请求后端，获取猎人的任务数据
export const GetWorkerTasksSaga = (obj) => ({
    type: GETWORKERTASKSSAGA,
    data: obj
})

// 猎人向后端发送，修改任务状态
export const ChangeWorkerTaskSaga = (obj) => ({
    type: CHANGEWORKERTASKSAGA,
    data: obj
})

// 猎人向后端发送，放弃任务，已完成的任务无法放弃
export const GiveUpWorkerTaskSaga = (obj) => ({
    type: GIVEUPWORKERTASKSAGA,
    data: obj
})
